home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Context / GrafPortContext.cp < prev    next >
Text File  |  1997-06-28  |  322b  |  24 lines

  1. // GrafPortContext.cp
  2.  
  3. #ifndef GrafPortContext_h
  4. #include "GrafPortContext.h"
  5. #endif
  6. #ifndef Assert_h
  7. #include "Assert.h"
  8. #endif
  9.  
  10. void GrafPortContext::Enter()
  11.   {
  12.     if ( port != qd.thePort )
  13.         SetPort( port );
  14.   }
  15.  
  16. void GrafPortContext::Leave()
  17.   {
  18.   }
  19.  
  20. void GrafPortContext::Check()
  21.   {
  22.     Assert( port == qd.thePort )
  23.   }
  24.